var app = new Vue({
    el: '#app',
    data: {
        ruleForm: {
            id: '',
            driverName: '',
            driverPhone: '',
            auth: '',
            idNo: '',
            carNo: '',
            carType: '',
            loadWeight: '',
            transportAuth: '',
            trailer: '',
            trailerNo: '',
            permitType: '',
            permitNo: '',
            carLength: '',
            carWidth: '',
            carWeight: '',
            vinNo: '',
            engineNo: '',
            permitExpireDate: '',
            idFrontPhoto: '',
            idBackPhoto: '',
            driverPhoto: ''
        }
    },
    methods: {},
    mounted: function () {
        var sysUser = JSON.parse($("#sysUser").val());
        console.log(sysUser);
        this.ruleForm.id=sysUser.id;
        this.ruleForm.driverName=sysUser.driverName;
        this.ruleForm.driverPhone=sysUser.driverPhone;
        this.ruleForm.auth=sysUser.auth;
        this.ruleForm.idNo=sysUser.idNo;
        this.ruleForm.carNo=sysUser.carNo;
        this.ruleForm.carType=sysUser.carType;
        this.ruleForm.loadWeight=sysUser.loadWeight;
        this.ruleForm.transportAuth=sysUser.transportAuth;
        this.ruleForm.trailer=sysUser.trailer;
        this.ruleForm.trailerNo=sysUser.trailerNo;
        this.ruleForm.permitType=sysUser.permitType;
        this.ruleForm.permitNo=sysUser.permitNo;
        this.ruleForm.carLength=sysUser.carLength;
        this.ruleForm.carWidth=sysUser.carWidth;
        this.ruleForm.carWeight=sysUser.carWeight;
        this.ruleForm.vinNo=sysUser.vinNo;
        this.ruleForm.engineNo=sysUser.engineNo;
        this.ruleForm.permitExpireDate=sysUser.permitExpireDate;
        this.ruleForm.idFrontPhoto=sysUser.idFrontPhoto;
        this.ruleForm.idBackPhoto=sysUser.idBackPhoto;
        this.ruleForm.driverPhoto=sysUser.driverPhoto;
    }
});
